package handler

import (
	"RMS/app/shop/lib"
	"RMS/app/shop/model"
	"RMS/common"
	"github.com/gin-gonic/gin"
)

func UpdatePackage(c *gin.Context) interface{} {
	req := &model.UpdatePackageReq{}
	if err := c.BindJSON(req); err != nil {
		resp := &model.UpdatePackageResp{}
		resp.Status = common.ErrCode
		resp.Message = common.ReqErr
		return resp
	}
	resp := lib.ImplUpdatePackage(c, req)
	return resp
}
